package common.log;

import com.google.gson.JsonArray;
import org.apache.log4j.Logger;
import com.google.gson.JsonArray;

public class PlainLogger {
    private static final PlainLogger __instance = new PlainLogger();
//    private Logger l = org.apache.log4j.Logger.getLogger("lu.uyum.data");
    private Logger l = org.apache.log4j.Logger.getLogger("ceng433.data");
    
    private PlainLogger() {}
    
    public static PlainLogger getInstance() {
      return __instance;
    }
    
    public void logUserData(String userID, JsonArray ja) {
      l.error(new String[]{userID, ja.toString()});
    }
    
    public void logUserData(String userID, String data) {
      l.error(new String[]{userID, data});
    }
}
